/**
 * vuex getters 封装
 * @author 杨世峰、韩睿倩
 */

const getters = {
    token: state => state.user.token,
    userId: state => state.user.userId,
    roleId: state => state.user.roleId,
    isCollapse: state => state.administrator.isCollapse,
    currentWord: state => state.booklet.currentWord,
    userIdAdmin: state => state.administrator.userIdAdmin,
    // functionId:state => state.administrator.functionId,
    // functionName:state => state.administrator.functionName,
    wordIdAdmin: state => state.administrator.wordIdAdmin,
    adminPassword: state => state.administrator.adminPassword,
    currentMenu:state => state.administrator.currentMenu,
}

export default getters
